    <?php $tam='60%';$numCol=4?>
    <div class="control-group">
        <label class="control-label" for="diagpreo">Complicaciones</label>
        <div class="controls">
        <?php latisoft_textArea('complica', '', $numCol, '', $active=true, $ancho=$tam )?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="plaTera">Recomendaciones</label>
        <div class="controls">
        <?php latisoft_textArea('recomenda', '', $numCol, '', $active=true, $ancho=$tam )?>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="planQuir">Tratamiento</label>
        <div class="controls">
        <?php latisoft_textArea('tratamiento', '', $numCol, '', $active=true, $ancho=$tam)?>
        </div>
    </div>
 
<?php
function llenarComboMedicamentosRepor($Medicamentos){
    foreach ($Medicamentos as $row)
    {
        echo "<option value='".$row['Producto']."'> ". $row['Descripcion']."</option>";
    }           
}
?>


<script language="javascript" src="<?php echo base_url(); ?>application/views/cirugia/funcionAuxiliares.js"></script>
<input type="hidden" id="cantMedExt" value="0">
        <div>
                  
                <table width="700px" class="table table-bordered">
                        <tr>
                              <td> <button type="button" class="btn btn-mini btn-primary" onclick="agregarFilaMed('cantMedExt','tablCuerMedExtr','tip1','med1','cantMed')" >Agregar Item</button></td>
                              <td><select name="Medicamento" id="med1" class="span9"> 
                                      <?php llenarComboMedicamentosRepor($comboMedicamen) ?>
                                </select>
                              </td>
                              <td><input name="cantidad" class="span6" id="cantMed"  type="text" placeholder="Cantidad" ></td>
                                                                                     
                          </tr>
                    </table>
                    <table width="700px" class="table table-bordered">                    
                        <caption><h5>Medicamentos Extras</h5></caption>
                           <thead>
                            <th>Nro. Medicamento</th>                             
                             <th>Insumo</th>
                             <th>Cantidad</th>
                             <th>Eliminar</th>                                        
                          </thead>                         
                          
                      
                          <tbody id="tablCuerMedExtr" >  
                            </tbody>                       
                  </table>
                 
    </div>

<div>
                  
    <table width="700px" class="table table-bordered">
        <tr>
                <td> <button type="button" class="btn btn-mini btn-primary" onclick="buscarPersonal()" >Agregar Personal</button></td>
                <td><label>Personal extra que atendio la cirugía </label>
                </td>
        </tr>
    </table>
        <table id="tblaprin" width="700px" class="table table-bordered">                    
            <caption><h5>Personal</h5></caption>
                <thead>
                <th>Código</th>                             
                    <th>Nombre</th>
                    <th>Rol</th>
                    <th>Eliminar</th>                                        
                </thead>                         


                <tbody id="tablCuerPerExtr" >  
                </tbody>                       
        </table>

    </div>
  
<!-- Personal -->
<input type="hidden" name="agregados" id="agregad" value="">
<div class="modal" id="myModalP" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;width:700px;">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="limpiartabla('tablPac')" >×</button>
        <h3 id="myModalLabel">Buscar Personal</h3>
    </div>
    <div class="modal-body" style="height:550px;">
        <div class="control-group">
            <label class="control-label" for="Documento">Documento</label>
            <div class="controls"><input type="text" class="input-xlarge" id="Documento"></div>
        </div>
        <div class="control-group">
            <label class="control-label" for="confNombre">Nombres</label>
            <div class="controls"><input type="text" class="input-xlarge" id="confNombre"></div>
        </div>
        <div class="control-group">
            <label class="control-label" for="ApellidoPat">Apellido Paterno</label>
            <div class="controls"><input type="text" class="input-xlarge" id="ApellidoPat"></div>
        </div>
        <div class="control-group">
            <label class="control-label" for="ApellidoMat">Apellido Materno</label>
            <div class="controls"><input type="text" class="input-xlarge" id="ApellidoMat"></div>
        </div>        
        <div class="control-group">
            <button class="btn btn-mini  btn btn-success" type="button" onclick="realizarbusqPer('Documento','confNombre','ApellidoMat','ApellidoPat','tablPer','<?php  echo (base_url().'cirugia/buscarPer2'); ?>','cod','name','tblaprin','idproc')">Buscar</button>
        </div>
        <input type="hidden" id="cod" value="">
        <input type="hidden" id="name" value="">
        <table id="tablPer" class="table table-hover" width="700px">
            <tbody>
            <caption><h4>Personal</h4></caption>
                <thead>
                <th>Codigo</th>
                <th>Nombres</th>
                <th>Apellidos</th>
                <th>Rol</th> 
                </thead>
           </tbody>
          </table>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true" onclick="limpiartabla('tablPac')">Close</button>        
    </div>
</div>